/*======================= user.h ===============*/
#ifndef _H_USER
#define _H_USER

/* server struct */
struct _user{
	char *name;
	char *locale;
	char *password;
};

/* user struct pointer */
typedef struct _user *user;

/* Create a new user struct */
user create_user();

/* delete a user struct */
void delete_user(user *person);

/* print to stdout a user struct */
void print_user(const user person);

/* find a user by his name */
user find_user(user users[], int users_size , char* name);

int check_user(user users[], int users_size, char *name, char *pass, char *locale);

#endif
